package com20230218;

public class Prime {
    public static int sum() {
        int s = 0;
        for (int i = 2; i < 100; i++) {
            for (int j = 2; j < 100 ; j++) {
                if ( i % j == 0 && i != 2){
                    System.out.println(i);
                    break ;
                }
                s += i;
            }


        }
        return s;
    }

    public static void main(String[] args) {
        int a = sum();
        System.out.println(a);

    }

}
